package com.example.blew.demo.Controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * TODO
 * </p>
 *
 * @author chaodong.zeng@pcitc.com
 * @since 2022/11/1
 */


@RestController
@RequestMapping("img")
@Api(tags = "UpImg", value = "上传图片")
public class UpImg {

    @ApiOperation(value = "图片上传")
    @PostMapping("updateImg")
    public void updateImg(@RequestParam("file") MultipartFile uploadFile){
        // 前端上传图片，
        String fileName=uploadFile.getName();

    }
}